package com.qulai.amazon_us.util.basic;

import java.util.Random;

public class Test {

    public static void main(String[] args) {
        Double price = 3.13D;
        // 在原价格基础上增加一点随机性，比如±0.01
        Random random = new Random();
        Double res = price + (random.nextDouble() * 0.02 - 0.01);
        System.out.println(res);
    }
}
